import axios from "../utils/http";
const model={
    namespaced:true,
    state:{
        menuList:[]

    },
    mutations:{
        menuListMutation(state,list){
          state.menuList=list
        }
    },
    actions:{
        menuListActions(context){
            axios.get('/menulist?istree=1').then(res=>{
                context.commit('menuListMutation',res.list)
                console.log(res);
            })
        }
    }
}

export default model